<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>代理商管理</a></li>
			<li class="active"><strong>代理商审核</strong></li>
		</ol>
	</div>
</div>

<!-- content-->
<div class="wrapper wrapper-content animated fadeIn"  ng-controller="agentAuditCtrl">
	<form class="form-horizontal" id="form1" >
		<div class="form-group">
			<div class="row">
				<div class="col-lg-12">
					<div class="tabs-container tab_other">
						<uib-tabset>
							<uib-tab> 						
								<uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong class="font-bold">基本信息</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
									<div ui-view="agentDetailBase"/>
								</div>	
							</uib-tab> 
							
							<uib-tab    > 
								<uib-tab-heading> 
									<span class="block m-t-xs"> <i class="fa fa-desktop"></i><strong class="font-bold">代理业务产品</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
				                    <div class="gridStyle"  ui-grid="bpList" ui-grid-resize-columns />
								</div>
							</uib-tab>
							
							<uib-tab active="active"> 
								<uib-tab-heading> 
									<span class="block m-t-xs"> 
										<i class="fa fa-desktop"></i>
										<strong class="font-bold">分润设置</strong>
									</span> 
								</uib-tab-heading>
								<div class="panel-body">
									<button class="btn btn-new btn-mr20" ng-click="getAllShare()">显示所有项</button>
									<button class="btn btn-new btn-mr20" ng-click="getShare()">只显示待审核项</button>
									<button class="btn btn-new btn-mr20" ng-click="allPass()">全部通过</button>
									<button class="btn btn-new btn-mr20" ng-click="allNotPass()">全部不通过</button>
									<div class="gridStyle auditDetail audi-r" ui-grid="shareList" ui-grid-resize-columns />
									<div class="block m-t-xs">
	                           			<strong>备注：</strong><br/>
										交易分润＝（商户签约扣率－代理商成本扣率）* 代理商分润百分比 * 交易金额；<br/>
										提现费分润＝（商户每笔提现手续费（如3.00元）－商户每笔提现代理商成本（如2.00元））*总笔数<br/>
						   			</div>
								</div>
							</uib-tab>
							<uib-tab id="happyBack">
								<uib-tab-heading>
									<span class="block m-t-xs">
										<i class="fa fa-desktop"></i>
										<strong class="font-bold">欢乐返活动</strong>
									</span>
								</uib-tab-heading>
								<div class="panel-body">
									<div class="gridStyle" ui-grid="happyBackGrid" ui-grid-resize-columns/>
								</div>
							</uib-tab>

							<uib-tab id="newHappyBack">
								<uib-tab-heading>
                                    <span class="block m-t-xs">
                                        <i class="fa fa-desktop"></i>
                                        <strong class="font-bold">新欢乐送活动</strong>
                                    </span>
								</uib-tab-heading>
								<div class="panel-body">
									<div class="gridStyle" ui-grid="newHappyBackGrid" ui-grid-resize-columns/>
								</div>
							</uib-tab>

							<uib-tab> 
								<uib-tab-heading > 
									<span class="block m-t-xs"> 
									<i class="fa fa-desktop"></i>
									<strong class="font-bold">商户服务管控费率</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
									<div class="gridStyle" ui-grid="rateList" ui-grid-resize-columns  />
			                        <div class="block m-t-xs">
			                          <strong>备注：</strong><br/>
										每笔固定金额1元，则填写商户费率1.00;<br/>
										每笔扣率为0.1%则填写商户费率0.1%;<br/>
										每笔扣率为0.1%，封顶3元，保底1元则填写商户费率1.00~0.1%~3.00;<br/>
										每笔扣率为0.1%加上固定金额1元，则填写商户费率0.1%+1.00;<br/>
										单笔阶梯扣率如10000.00元以下，扣率0.38%，10000.00元及以上扣率0.37%，则填写0.38%<10000.00<=0.37%.<br/>
										每笔扣率为0.1%，封顶3元，则填写商户费率0.1%~3.00；<br/>
									   </div>									
								</div>
							</uib-tab>
							
							<uib-tab  > 
								<uib-tab-heading> 
									<span class="block m-t-xs"> 
									<i class="fa fa-desktop"></i>
									<strong class="font-bold">商户服务管控限额</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
									<div class="gridStyle" ui-grid="quotaList" ui-grid-resize-columns />
								</div>
							</uib-tab>
							
							<uib-tab ng-show='teamId==200010'> 
								<uib-tab-heading >
									<span class="block m-t-xs"> <i class="fa fa-desktop"></i> <strong class="font-bold">OEM定制配置</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">								
								    <div class="row">
								        <div class="col-lg-12">
								        	 <div class="ibox float-e-margins">
								                <div class="ibox-title">
								                    <h5>OEM-APP关于软件</h5>
								                    <!--<div ibox-tools></div>-->
								                </div>
								                <div class="ibox-content">							                	
								                    <div class="row">
								                        <div class="col-sm-10">								                        	
								                        	<div class="form-group">
								                        		<label class="col-lg-4 control-label">LOGO：</label>
																	<img ng-show="agent.clientLogo!=null" alt="" ng-src="{{agent.clientLogoLink}}" style="width: 198px;height: 100px">
	                      									 </div>
	                      									 <div class="form-group">
								                        		<label class="col-lg-4 control-label">说明：</label>
	                           									<div class="col-lg-6">
																	<textarea rows="5" cols="20" ng-model="agent.logoRemark" class="form-control" readonly></textarea>
																</div>
	                      									 </div>                      									 	                   									 	                 									 								                       
								                        </div>								                        					                     
								                    </div>
								                </div>
								            </div>
								            <div class="ibox float-e-margins">
								                <div class="ibox-title">
								                    <h5>代理商WEB</h5>
								                    <!--<div ibox-tools></div>-->
								                </div>
								                <div class="ibox-content">
								                    <div class="row">
								                        <div class="col-sm-10">								                        	
								                        	<div class="form-group">
								                        		<label class="col-lg-4 control-label">LOGO：</label>
															 	<img alt="" ng-show="agent.managerLogo!=null" ng-src="{{agent.managerLogoLink}}" style="width: 198px;height: 100px">
	                      									 </div>                      									                									 	                   									 	                 									 								                       
								                        </div>					                        					                     
								                    </div>
								                </div>
								            </div>
								        </div>
							       	</div>						       
								</div>
							</uib-tab> 
						</uib-tabset>					
					</div>
				</div>
			</div>

			<div class="col-lg-12 bgff">
				<div class="col-sm-12">
					<div class="col-sm-6"></div><div class="col-sm-10">
					<button class="btn btn-primary btn-mr20" type="button" ng-show="hasPermit('agent.edit')"
								 ng-click="submit()">提交</button>
					<a class="btn btn-primary4" ui-sref="agent.auditQuery">返回</a>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>